package cn.edu.scau.cmi.limingben.composite.model.Consistent_model;

import java.util.LinkedList;
import java.util.List;

public class Organization extends AbstractOrganization {
	private List<AbstractOrganization> children;

	public Organization(AbstractOrganization father, String name) {
		super(name, father);
		children = new LinkedList<>();
	}

	@Override
	public List<AbstractOrganization> getChildren() {
		return children;
	}
	@Override
	public void addChild(AbstractOrganization child) {
		children.add(child);
	}
	@Override
	public void removeChild(AbstractOrganization child) {
		children.remove(child);
	}
}
